package com.mvc.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

/**系统通知公告*/
public class Notice  extends Model<Notice>{

	private static final long serialVersionUID = 2818659911069814136L;
	public static final Notice dao = new Notice();
	
	
	/***
	 * 表字段
	 *
	 */
	public static interface TableField {
		String ID = "id";
		String TYPE = "type";
		String CONTENT = "content";
		String CREATETIME = "createTime";
		String TITLE = "title";
		String URL = "url";
	}
	
	public Page<Notice> getPage(int page,int size)
	{
		String select = "select *";
		String formwhere = "from notice where 1=1  order by createTime desc ";
		return dao.paginate(page, size, select, formwhere);
	}
}
